package com.lht.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 目标管理表实体
 *
 * @author ZhengZhanWu
 * @date 2020-01-14 23:42:37
 */
@Data
@NoArgsConstructor
@TableName("lst_target")
public class TargetEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId
    private Long id;
    /**
     * 创建时间
     */
    private Date createAt;
    /**
     * 更新时间
     */
    private Date updateAt;
    /**
     * 是否删除   0:未删除(默认)   1:删除
     */
    private String isDelete;
    /**
     * 推销员用户id
     */
    private Long promoUserId;
    /**
     * 月，格式yyyy-MM
     */
    private String month;
    /**
     * 计划总签单数
     */
    private Integer planTotalOrder;
    /**
     * 计划总订单金额
     */
    private BigDecimal planTotalOrderAmount;
    /**
     * 创建者用户id
     */
    private Long createUserId;
    /**
     * 更新者用户id
     */
    private Long updateUserId;
    /**
     * 备注
     */
    private String remark;

    /**
     * 业务员
     */
    @TableField(exist = false)
    private SysUserEntity agentInfo;

    /**
     * 统计数据
     */
    @TableField(exist = false)
    private OrderStatisticsEntity orderStatisticsInfo;

    @TableField(exist = false)
    private BigDecimal processOfOrder;

    @TableField(exist = false)
    private BigDecimal processOfMoney;


    public static final String ID = "id";
    public static final String CREATE_AT = "create_at";
    public static final String IS_DELETE = "is_delete";
    public static final String UPDATE_AT = "update_at";
    public static final String PROMO_USER_ID = "promo_user_id";
    public static final String MONTH = "month";
    public static final String PLAN_TOTAL_ORDER = "plan_total_order";
    public static final String PLAN_TOTAL_ORDER_AMOUNT = "plan_total_order_amount";
    public static final String CREATE_USER_ID = "create_user_id";
    public static final String UPDATE_USER_ID = "update_user_id";
    public static final String REMARK = "remark";
}
